<html>
	<head>
		<script type="text/javascript" src="JavaScriptFlashGateway.js"></script>
		<script type="text/javascript">
			var uid = new Date().getTime();
			var flashProxy = new FlashProxy(uid, 'JavaScriptFlashGateway.swf');
			var response = "";
			
			// flash sends message to SWT which then sends a response to flash
			function sendMessage(text)
			{
				window.status = "#" + text;
				// clear the status afterwards because the browser sends
				// status updates when the mouse moves over it (IE does anyway)
				window.status = "";
			
				if(response.length)
				{
					flashProxy.call("responseHandler",response);
				}
			}
			
			// flash sends response to SWT
			function sendResponse(text)
			{
				window.status = "!" + text;
				window.status = "";
			}
		</script>
	</head>
	<body>
		<script type="text/javascript">
			var tag = new FlashTag('test.swf', 300, 300);
			tag.setFlashvars('lcId='+uid);
			tag.write(document);
		</script>
	</body>
</html>